package top.canyue.word_range_service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;
import top.canyue.word_range.pojo.dto.WordDto;
import top.canyue.word_range.pojo.po.Word;
import top.canyue.word_range.pojo.vo.WordDetailVo;
import top.canyue.word_range.result.Result;

public interface WordService extends IService<Word> {
    @Transactional
    Result<Object> addWord(WordDto wordDto);

    Result<WordDetailVo> getWordDetail(String word, String bookId);

    Result<Object> updateWord(WordDto wordDto);

    Result<Object> deleteWordOnBook(String word, String bookId);
}
